<?php $this->_extends('_layouts/rulesets_layout'); ?>

<?php $this->_block('title'); ?> - 主机组规则设置<?php $this->_endblock(); ?>

<?php $this->_block('contents'); ?>

	<div id="getting-started" alt="组规则设置">
	 <?php if($ishavet=='0') {?>
	 
	  <?php $this->_element('formview_simple',array('form'=>$form)); ?>
<?php }else{ ?>

 <table>
		<tr><th>规则名称</th><th>关键字</th><th>规则类型</th><th>时间</th><th>操作</th></tr>
		<?php foreach ($group as $s): ?>
		<tr><td><?php echo $s['rulename'];?></td><td><?php echo $s['keyword'];?></td><td><?php echo $s['cncategory'];?></td><td><?php echo $s['datetime'];?></td><td><a href="<?php echo url('default::rulesetting/grouprdel', array('id' => $s['id'],'groupid' => $nowg)); ?>">编辑</a> <a href="<?php echo url('default::rulesetting/grouprdel', array('id' => $s['id'],'groupid' => $nowg)); ?>">删除</a></td></tr>
		<?php endforeach; ?>
		<tr>
      <td colspan="5"><center>
       共有 <font color="Red"><?php echo $pager['record_count'];?></font> 条记录,分为 <font color="Red"><?php echo $pager['page_count'];?></font> 页显示,当前第 <font color="Red"><?php echo $pager['current'];?></font>页,每页 <font color="Red"><?php echo $pager['page_size'];?></font> 条<?php echo $pagestr; ?></center>
    </td>
    </tr>
		</table>

<?php } ?>
	</div>

<?php $this->_endblock('contents'); ?>